/*通用CSS模板*/

/*单行文本省略：在宽度可控的控件中，当单行文本超过控件时自动省略*/
.single-text-omit {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*浮动*/
.flow-l{
	float: left;
}
.flow-r{
	float: right;
}

/*清除浮动：子元素浮动造成父元素的塌陷，给父元素添加以清除子元素浮动*/
.clear-flow:after {
	content: '';
	clear: both;
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}
/*清除浮动：兼容IE6、7*/
.clear-flow {
	zoom: 1;
}


/*页面阴影：当页面出现浮动操作框时，在div上设置阴影*/
.page-shade {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	background: #000;
	opacity: 0.2;
}
/*只有父元素设置宽高为100%子元素设置宽高100%时才能撑满整个页面
 html,body {
 	 width: 100%;
	 height: 100%;
 }
 */


/*绘制三角标志：动态绘制三角标识*/
.caret-top {
	width: 0;
	height: 0;
	border-bottom: 4px solid #000;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}
.caret-bottom {
	width: 0;
	height: 0;
	border-top: 4px solid #000;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}
.caret-left {
	width: 0;
	height: 0;
	border-right: 4px solid #000;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
}
.caret-right {
	width: 0;
	height: 0;
	border-left: 4px solid #000;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
}